<template>
  <div v-loading="loading" class="home-page scrollbar">
    <Header />

    <div class="main-content" id="main-content">
      <div class="joker-container">
        <!-- JOKER logo and title -->
        <div class="hero-section">
          <div class="joker-logo-container">
            <img src="../../assets/images/joker_150x.png" alt="Joker" class="joker-logo">
          </div>
          <div class="joker-title-container">
            <div class="effect-text">JOKER</div>
          </div>
        </div>

        <!-- Simple content section with just text -->
        <div class="content-block">
          <!-- 文案内容 -->
          <div class="text-block">
            <p class="sentence headline">NO STORY, JUST LAUGHTER</p>
            <p class="sentence standard">LIFE'S A COMEDY — AND YOU'RE THE JOKER</p>
            <p class="sentence emphasized">FUCK YOU. FUCK ME. FUCK THE WORLD</p>
            <p class="sentence conclusion">WE'RE THE JOKE — AND THE START OF SOMETHING DIFFERENT</p>
          </div>

          <!-- Hashtags with links -->
          <div class="hashtag-section">
            <p class="hashtag"><a href="https://bitcoin.org/" target="_blank" rel="noopener noreferrer">#Bitcoin</a></p>
            <p class="hashtag"><a href="https://rgb.tech/" target="_blank" rel="noopener noreferrer">#RGB</a></p>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import { ref, onBeforeMount, onBeforeUnmount, inject, computed } from 'vue'
import { useRoute } from 'vue-router'
// import sysend from 'sysend'
import { useAccountStore } from '../../stores/account'
import { useCommonStore } from '../../stores/index'
import Header from '../../components/HeaderNew.vue'
import { log } from '../../utils/log.js'
import {
  copyTextToClipboard,
  addZero,
} from '../../utils/index.js'

const route = useRoute()


const $axios = inject('$axios')
const accountStore = useAccountStore()
const commonStore = useCommonStore()
const loading = ref(false)


const userInfo = computed(() => {
  return accountStore.user
})

onBeforeMount(async () => {
})

onBeforeUnmount(() => {
})
</script>

<style lang="less" scoped>
.home-page {
  flex: 1;
  height: 100%;
  overflow: auto;
}

.scrollbar {
  /* 可根据需要添加滚动条样式 */
}

.main-content {
  opacity: 1 !important;
  transition: opacity 0.8s ease;
  padding: 0;
  width: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.joker-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 96px 24px;
  position: relative;
  text-align: center;
}

.joker-logo-container {
  text-align: center;
  margin-bottom: 10px;
}

.joker-title-container {
  text-align: center;
}

.joker-logo {
  max-width: 80px;
  height: auto;
  animation: shake 1.5s ease-in-out infinite;
  transform-origin: center;
}

.effect-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 64px;
  color: #00FFFF;
  text-align: center;
  letter-spacing: 6px;
  text-transform: uppercase;
  font-weight: bold;
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
  line-height: 102px;
}

.content-block {
  padding: 1.6px 24px;
  width: 100%;
  margin-bottom: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 35px;
}

.text-block {
  max-width: 800px;
  margin: 0 auto 80px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sentence {
  font-size: 19.2px;
  line-height: 1.4;
  margin-top: 14px;
  margin-bottom: 14px;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'IBM Plex Mono', monospace;
  text-align: center;
  line-height: 1.7;
  position: relative;
  white-space: normal;
  color: #00FFFF;
}

.sentence.headline {
  font-size: 19px;
  margin-bottom: 14px;
  letter-spacing: 1px;
  font-weight: 500;
}

.sentence.standard {
  font-size: 19px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.sentence.emphasized {
  font-size: 19px;
  font-weight: normal;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  color: #00FFFF;
}

.sentence.conclusion {
  font-size: 19px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  font-style: normal;
}

.hashtag-section {
  margin-top: 15px;
  gap: 30px;
  display: flex;
  justify-content: center;
}

.hashtag {
  font-size: 17.6px;
  position: relative;
}

.hashtag a {
  text-decoration: none;
  transition: all 0.3s ease;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.hashtag a[href*="bitcoin"] {
  color: #F7931A;
  position: relative;
  border-bottom: none;
}

.hashtag a[href*="bitcoin"]:hover {
  color: #F7931A;
  border-bottom: none;
}

.hashtag a[href*="bitcoin"]::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: #F7931A;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.hashtag a[href*="bitcoin"]:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hashtag a[href*="rgb"] {
  background: linear-gradient(90deg, #FF003C, #39FF14, #1F51FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  border-bottom: none;
}

.hashtag a[href*="rgb"]:hover {
  background: linear-gradient(90deg, #FF003C, #39FF14, #1F51FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border-bottom: none;
}

.hashtag a[href*="rgb"]::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, #FF003C, #39FF14, #1F51FF);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.hashtag a[href*="rgb"]:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.joker-img {
  height: 1em;
  width: auto;
  vertical-align: middle;
  display: inline-block;
  margin-bottom: 0.2em;
}

@keyframes shake {
  0% {
    transform: rotate(0deg);
  }
  15% {
    transform: rotate(10deg);
  }
  30% {
    transform: rotate(-15deg);
  }
  45% {
    transform: rotate(10deg);
  }
  60% {
    transform: rotate(-10deg);
  }
  75% {
    transform: rotate(5deg);
  }
  90% {
    transform: rotate(-5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
</style>
